package com.shuma.product.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 销售兑换表
 * @TableName sales_or_exchange
 */
@TableName(value ="sales_or_exchange")
@Data
public class SalesOrExchange implements Serializable {
    /**
     * 商品id
     */
    @TableId(value = "products_id")
    private Long productsId;

    /**
     * 兑换数量
     */
    @TableField(value = "exchange_count")
    private Integer exchangeCount;

    /**
     * 上线时间
     */
    @TableField(value = "on_time")
    private Date onTime;

    /**
     * 下线时间
     */
    @TableField(value = "off_time")
    private Date offTime;

    /**
     * 积分兑换数量
     */
    @TableField(value = "integral_count")
    private Integer integralCount;

    /**
     * 积分现金兑换数量
     */
    @TableField(value = "integral_cash_count")
    private Integer integralCashCount;

    /**
     * 现金兑换数量
     */
    @TableField(value = "cash_count")
    private Integer cashCount;

    /**
     * 销售量
     */
    @TableField(value = "sales")
    private Integer sales;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}